/*******************************************************************
 *
 * Copyright (C), 2018-2018, www.letstrong.cn, All rights reserved.
 *
 * Author      : xiaoyu | xiaoyu_ebox@163.com
 * Create Time : 2018-6-9
 * Version     : v0.1
 * Description : ugui_draw header file
 *******************************************************************/
#ifndef __UGUI_DRAW_H__
#define __UGUI_DRAW_H__

/*----------------------------Head file----------------------------*/
#include "ugui.h"

/*----------------------------macro file---------------------------*/
#if (CONFIG_UI_BUFFER != UI_BUFFER_NONE)
#define _DRIVER_ATT
#else
#define _DRIVER_ATT				extern
#endif

/*----------------------------type define--------------------------*/

/*-----------------------------------------------------------------*/
_DRIVER_ATT void draw_pixel_driver(UG_S16 x, UG_S16 y, UG_COLOR c);
_DRIVER_ATT void draw_line_driver( UG_S16 x1, UG_S16 y1, UG_S16 x2, UG_S16 y2, UG_COLOR c);
_DRIVER_ATT void draw_frame_driver( UG_S16 x1, UG_S16 y1, UG_S16 x2, UG_S16 y2, UG_COLOR c);
_DRIVER_ATT bool draw_bmp_driver(UG_S16 xp, UG_S16 yp, UG_BMP* bmp, UG_U8 effect);

#endif // __UGUI_DRAW_H__

